<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td class="border2">
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="poll_results"}</td>
        </tr>
        </table>    
        <br />
        <div style='font-size:10pt;' class="color">
            <b>{language text='Mod_Poll.poll'}:</b> 
            <span style="font-size:9pt;">{$aPoll.poll|escape}</span>
            <br /><br />
            {foreach from=$aAnswers item=aAnswer name=answers}
                <div style="font-size:8pt;" class="color"> <b>{$aAnswer.answer|escape}</b> </div>
                <table style="width:100%;" cellpadding="2" cellspacing="2">
                <tr>
                    <td style="width:20%;vertical-align:top;font-size:7pt;text-align:center;" class="color"><b>{$aAnswer.percent}%</b></td><td style="width:80%;vertical-align:top;">
                        {if $aAnswer.percent == 0}
                            <img src="design/pic/lp_0.gif" alt="" width="100" height="8" style="vertical-align:middle;" />
                        {elseif $aAnswer.percent == 100}
                            <img src="design/pic/lp_1.gif" alt="" width="100" height="8" style="vertical-align:middle;" />
                        {else}
                            {assign var=percent value=100}
                            {assign var=percent value=$percent-$aAnswer.percent}
                            <img src="design/pic/lp_1.gif" alt="" width="{$aAnswer.percent}" height="8" style="vertical-align:middle;" /><img src="design/pic/lp_0.gif" alt="" width="{$percent}" height="8" style="vertical-align:middle;" />
                        {/if}
                    </td>
                </tr>
                </table>
                <br/>
            {/foreach}
            <div style='padding-left:40px;padding-top:10px;' class="color">
                <b>{language text="total_votes"}: {$iTotal} </b>
            </div>
            <br /><br />
            <b>{language text="recently_voted_by"}:</b><br />
            <div style="padding:5px;">
                {foreach from=$aVoters item=aVoter key=iKey}
                    <span style="font-size:9pt;"><a href="{url link='public.user' name=$aVoter.user}">
                    {$aVoter.user}</a> {language text="answered_1189"}: {$aVoter.answer|escape}</span><br/>
                {foreachelse}
                    <div class="message_info">
                        {language text="there_are_no_votes_on_this_poll_yet"}
                    </div>
                {/foreach}
            </div>
        </div>

    </td>
</tr>
</table>